import request from '@/utils/request'

// 查询学生收藏课程列表
export function listStudent_collect(query) {
  return request({
    url: '/auto/student_collect/list',
    method: 'get',
    params: query
  })
}

// 查询学生收藏课程详细
export function getStudent_collect(id) {
  return request({
    url: '/auto/student_collect/' + id,
    method: 'get'
  })
}

// 新增学生收藏课程
export function addStudent_collect(data) {
  return request({
    url: '/auto/student_collect',
    method: 'post',
    data: data
  })
}

// 修改学生收藏课程
export function updateStudent_collect(data) {
  return request({
    url: '/auto/student_collect',
    method: 'put',
    data: data
  })
}

// 删除学生收藏课程
export function delStudent_collect(id) {
  return request({
    url: '/auto/student_collect/' + id,
    method: 'delete'
  })
}

// 导出学生收藏课程
export function exportStudent_collect(query) {
  return request({
    url: '/auto/student_collect/export',
    method: 'get',
    params: query
  })
}